package com.rush.manageepac.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @outher zhy
 * 2022-08-30
 */
@Data
@NoArgsConstructor

public class Information01 {
    private Integer id;
    private String school;
    private String Student;
    private Integer age;
    private String sex;
    private String classes;
    private String health;
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    public Information01(String school, String student, Integer age, String sex, String classes,String health, Date date) {
        this.school = school;
        Student = student;
        this.age = age;
        this.sex = sex;
        this.classes = classes;
        this.date = date;
    }
}
